

import androidx.lifecycle.ViewModelProvider
import com.yd.basemodule.base.ViewModelFactory
import com.yd.basemodule.error.ExceptionHandle

/**
 * <pre>
 *     author : yh
 *     e-mail : xxx@xx
 *     time   : 2023/12/22
 *     desc   :
 * </pre>
 */
interface GlobalConfig {
    fun viewModelFactory(): ViewModelProvider.Factory? = ViewModelFactory.getInstance()

    fun globalExceptionHandle(e: Throwable) = ExceptionHandle.handleException(e)
}